
const { createProxyMiddleware } = require(`http-proxy-middleware`);

const IP = 'localhost';

// 端侧
module.exports = function (app) {
    app.use(createProxyMiddleware(`/api`, {
        target: `http://${IP}:3100`,
        changeOrigin: true,
    }))

    app.use(createProxyMiddleware(`/glbs`, {
        target: `http://${IP}:3100`,
        changeOrigin: true,
    }))
}

